package com.liang.springbatch.dbjdbc;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName DbJdbcWriter
 * @Description TODO
 * @Author liang
 * @Date 2019/7/3 16:34
 * @Version 1.0
 **/
@Component("dbJdbcWriter")
public class DbJdbcWriter implements ItemWriter<User> {


    @Override
    public void write(List<? extends User> list) throws Exception {
        for(User user : list){
            System.out.println("DbjdbcWriter执行"+user.toString());
        }
    }
}
